package com.study.springboot.model.bo;

import com.study.springboot.common.mvc.validate.Update;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author wei.zhao
 * @description:
 * @date 2021年12月27日 15:58
 */
@Data
public class UserBO implements Serializable {
    @NotNull(groups = {Update.class})
    private Long id;
    @NotNull(groups = {Update.class})
    @Length(min = 1, max = 100, groups = {Update.class})
    private String name;
}
